package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 供应商类
 */
@Data
@ApiModel(value = "供应商类")
@TableName("t_supplier")
public class SupplierBean {
    /*
    （供应商编号，供应商名称，负责人，负责人电话，供应商地址，经营范围）
     */
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_supplierId",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "供应商名称")
    @TableField("su_name")
    private String name;
    @ApiModelProperty(value = "负责人")
    @TableField("su_head")
    private String head;
    @ApiModelProperty(value = "负责人电话")
    @TableField("su_tel")
    private String tel;
    @ApiModelProperty(value = "供应商地址")
    @TableField("su_address")
    private String address;
    @ApiModelProperty(value = "经营范围")
    @TableField("su_range")
    private String scope;

    public SupplierBean() {
    }

    public SupplierBean(String name, String head, String tel, String address, String scope) {
        this.name = name;
        this.head = head;
        this.tel = tel;
        this.address = address;
        this.scope = scope;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "\nSupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", head='" + head + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", scope='" + scope + '\'' +
                '}';
    }
}
